<?php

namespace app\common\lib;

class Redis
{

    private static $smspre = 'sms_';
    private static $userpre = 'user_';

    // 验证码key
    public static function smsKey($phone)
    {
        return self::$smspre.$phone;
    }

    // 用户key
    public static function userKey($phone)
    {
        return self::$userpre.$phone;
    }


}